package com.tanhua.dubbo.api;

import com.tanhua.model.domain.User;
import com.tanhua.model.domain.UserInfo;

import java.util.List;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2021/11/27 23:12
 */


public interface UserApi {

    /**
     * 根据手机号查询用户
     * @param phone
     * @return
     */
    User findByPhone(String phone);

    /**
     * 添加新用户
     * @return
     */
    void add(User user);


    void update(User user);

    List<User> findAll();

    User findById(Long id);

    User findByHuanxinId(String huanxinId);
}
